package com.mooc.lib_sofa.bind

import androidx.databinding.BindingAdapter
import androidx.viewpager.widget.ViewPager
import com.flyco.tablayout.SlidingTabLayout

/**
 * databinding下自定义flycotablayout属性
 * */
class FlycoTabBind {

    companion object{

        @JvmStatic
        @BindingAdapter("vp")
        fun bindFlayco(tab : SlidingTabLayout,vp : ViewPager){
            tab.setViewPager(vp)
        }
    }

}